/*
  Programa Wifis, 2010-2011
  Autor: Nilhcraiv 

This file is part of Wifis.

    Wifisis free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Wifisis distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Wifis  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DIALOGO_H
#define DIALOGO_H

#include <QDialog>
#include <QString>
#include <QPushButton>
#include <QDialogButtonBox>
#include <QAbstractButton>
#include <QFlags>

namespace Ui {
    class Dialogo;
}

class Dialogo : public QDialog
{
    Q_OBJECT

public:
    explicit Dialogo(QWidget *parent = 0);
    ~Dialogo();

private:
    Ui::Dialogo *ui;
    QPushButton *buttonUpdate;

public slots:
    void setShowText(QString);
    void setWindowCaption(QString);
    void setCancelText(QString);
    void setOkText(QString);
    void showDialog(bool);
    void removeButtonUpdate();
    void addButton(QString texto,QDialogButtonBox::ButtonRole role);
    void slotCancelar();

signals:
    void aceptar();
    void blockSignalsQTimer(bool);
};

#endif // DIALOGO_H
